Skip to content

Added string methods#290

Closed
iashok22 wants to merge 10 commits into
apache:masterfrom
iashok22:master
Closed

Added string methods#290
iashok22 wants to merge 10 commits into
apache:masterfrom
iashok22:master

Conversation

@iashok22
Copy link
Copy Markdown

  1. indexOfAll - Finds and returns all the indexes of given character
  2. isAnagram - Tells whether given string is anagram with another string

@garydgregory
Copy link
Copy Markdown
Member

The anagram method belongs in commons-text IMO.

@britter
Copy link
Copy Markdown
Member

britter commented Sep 26, 2017

I agree with @garydgregory. @chtompki WDYT?

if(searchKey.equals(source.charAt(i))) {
indexList.add(i);
}
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you fix the indentation please? Let it be properly aligned.

@iashok22 iashok22 closed this Oct 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants